package com.redis.nxj.service.impl;

import com.redis.nxj.dao.EmpDao;
import com.redis.nxj.pojo.Emp;
import com.redis.nxj.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ningxinjie
 * @date 2021/3/29
 */
@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    EmpDao empDao;

    @Override
    public List<Emp> queryAllEmp() {
        return empDao.queryAllEmp();
    }

    @Override
    public int delEmpById(Integer id) {
        return empDao.delEmpById(id);
    }
}
